import createAPI from '@/plugins/axios'
const asyncSite = {
  list: config => createAPI('site/list', 'post', config),
  add: config => createAPI('site/add', 'post', config),
  checkout: config => createAPI('site/checkout', 'post', config),
  checkin: config => createAPI('site/checkin', 'post', config),
  delete: config => createAPI('site/delete', 'post', config),
  // addlogin: config => createAPI('site/addlogin', 'post', config),
  addSocialSecurityRule: config => createAPI('site/addSocialSecurityRule', 'post', config),
  securityRuleQuery: config => createAPI('site/socialSecurityRuleQuery', 'post', config),
  securityLoginQuery: config => createAPI('site/socialSecurityLoginQuery', 'post', config),
  accountlist: config => createAPI('site/accountlist', 'post', config),
  addaccount: config => createAPI('site/addaccount', 'post', config),
  updateAccount: config => createAPI('site/updateAccount', 'post', config),
  deleteaccount: config => createAPI('site/deleteaccount', 'post', config),
  citySocialSecurity: config => createAPI('site/citySocialSecurity', 'post', config),
  addSocialSecurity: config => createAPI('site/addSocialSecurity', 'post', config),
  loginquery: config => createAPI('site/loginquery', 'post', config)
}
const asyncMould = {
  sitenum: config => createAPI('site/sitenum', 'post', config),
  list: config => createAPI('pagemodel/list', 'post', config),
  delete: config => createAPI('pagemodel/delete', 'post', config),
  listsitename: config => createAPI('site/listsitename', 'post', config),
  checkout: config => createAPI('pagemodel/checkout', 'post', config),
  checkin: config => createAPI('pagemodel/checkin', 'post', config),
  add: config => createAPI('pagemodel/add', 'post', config),
  query: config => createAPI('pagemodel/query', 'post', config),
  querytype: config => createAPI('pagemodel/querytype', 'post', config),
  queryCopyTop: config => createAPI('pagemodel/queryCopyTop', 'post', config),
  
  generalModelVerify: config => createAPI('modelVerify/generalModelVerify', 'post', config),
  socialSecurityModelVerify: config => createAPI('modelVerify/socialSecurityModelVerify', 'post', config),
  socialSecuritySmsCode: config => createAPI('modelVerify/socialSecuritySmsCode', 'post', config),
  getVerifyUrls: config => createAPI('modelVerify/getVerifyUrls', 'get', config),
  deleteVerifyUrl:config  => createAPI('modelVerify/deleteVerifyUrl','get',config)
}
export { asyncMould, asyncSite }
